home *** CD-ROM | disk | FTP | other *** search
- 0 rem << cd26-3 >>
- 1 rem commodare #22-3 :
- 2 rem measured decimals
- 3 rem solution by matt shapiro
- 4 rem
- 10 input"how many inches (decimal)";d
- 20 w=int(d):n=int(64*(d-w)+.5):d=64:if n=64 then print w+1 : end
- 30 n2=n/2:if n2=int(n2) then n=n2:d=d/2:goto 30
- 40 print w;"and";str$(n);"/";mid$(str$(d),2):end
-